﻿@model UserEditModel
<div>
    <div class="panel-body " style="width: 450px; overflow-x: hidden;">
        @using (Html.BeginForm(MVC.Admin.AdminUser.EidtUser(), FormMethod.Post, new { id = "registerUser", role = "form", @class = "form-horizontal" }))
        {

            @Html.AntiForgeryToken()
            @Html.HiddenFor(n => n.Id)
            <div class="form-group">
                @Html.LabelFor(n => n.UserName, new RouteValueDictionary { { "class", "col-sm-3 control-label" } })
                <div class="col-sm-8">
                    @Html.TextBoxFor(n => n.UserName, new RouteValueDictionary { { "autofocus", "" }, { "placeholder", "用户名" }, { "class", "form-control" } })
                    @Html.ValidationMessageFor(n => n.UserName)
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(n => n.Email, new RouteValueDictionary { { "class", "col-sm-3 control-label" } })
                <div class="col-sm-8">
                    @Html.TextBoxFor(n => n.Email, new RouteValueDictionary { { "type", "email" }, { "autofocus", "" }, { "placeholder", "邮箱" }, { "class", "form-control" } })
                    @Html.ValidationMessageFor(n => n.Email)
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(n => n.Mobile, new RouteValueDictionary { { "class", "col-sm-3 control-label" } })
                <div class="col-sm-8">
                    @Html.TextBoxFor(n => n.Mobile, new RouteValueDictionary { { "placeholder", "手机号" }, { "class", "form-control" } })
                    @Html.ValidationMessageFor(n => n.Mobile)
                </div>
            </div>
            <div class="form-group">
                @Html.LabelFor(n => n.NickName, new RouteValueDictionary { { "class", "col-sm-3 control-label" } })
                <div class="col-sm-8">
                    @Html.TextBoxFor(n => n.NickName, new RouteValueDictionary { { "placeholder", "昵称" }, { "class", "form-control" } })
                    @Html.ValidationMessageFor(n => n.NickName)
                </div>
            </div>

            <div class="pull-right">
                <button class="btn btn-default" type="button" plugin="dialogClose">取消</button>
                <button class="btn btn-success " type="submit" plugin="ajaxSubmitDialog">保存</button>
            </div>}
    </div>
</div>